package com.wjy.sfhcore.util;

import java.util.Calendar;

/**
 * Created by wangjingyuan on 15/6/4.
 */
public class DateUtil {
    /**
     * 是否是周六
     *
     * @return
     */
    public static boolean isSatDay() {
        int today = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
        return today == Calendar.SATURDAY;
    }

    /**
     * 是否是周五
     *
     * @return
     */
    public static boolean isFriday() {
        int today = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
        return today == Calendar.FRIDAY;
    }

    /**
     * 是否是周日
     *
     * @return
     */
    public static boolean isSunday() {
        int today = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
        return today == Calendar.SUNDAY;
    }
}
